Interactive Maps
.zip| In person norms | And also, for online learning… |
|---|---|
| Be fully present to each other & the work. | Keep your video on when possible. In large groups, mute your microphone when not talking. Close/mute/minimize other apps and devices to avoid distraction. |
| Assume positive intent & also take responsibility for the impact you have. | Remember online interaction masks even more of the full story. Notice when you are making assumptions, and seek information to check them. |
| Embrace collaboration. | Use the gallery view so you can see everyone. Use breakout groups as an opportunity to collaborate. |
| Be open to learning and accept non-closure. | Expect the inevitable technical glitches and learning curves. Exercise patience with one another. |
| Be aware of when to step up and step back. When stepping back, do so as an active listener. | Try out different modes of participation. Step back by making space for others to engage in these. |
| Land your plane–get to the point you intended. | We all know how hard it is to be talked at, especially in a Zoom session, so let’s keep it to a minimum. |
.csv) in same CRS
left_join() data to sf object (if possible): plot one geom_sf() layer [Assn: 12]geom_sf() layers (st_as_sf() data if needed)geom_sf() layer with geom_point() [TODAY].csv) in different CRS
left_join() data to sf object: one geom_sf() layer [Australia]st_transform() data to match sf object’s CRS: two geom_sf() layers [Knox Zones]As with most design-related things, it depends on the goals and the audience of your visualization.

Other packages include:
Our data: - The rgbif package allows you to access data from the Global Biodiversity Information Facility (GBIF).
Our data: - The rgbif package allows you to access data from the Global Biodiversity Information Facility (GBIF).
monarchs <- occ_search(scientificName = 'Danaus plexippus') #provides a gbif object
monarch_data <- monarchs$data #provides a tibble
glimpse(monarch_data[,c(1:4,77)])Rows: 500
Columns: 5
$ key <chr> "4898204406", "4507686934", "4507704024", "4507984043…
$ scientificName <chr> "Danaus plexippus (Linnaeus, 1758)", "Danaus plexippu…
$ decimalLatitude <dbl> -28.39790, -34.90042, -34.86286, -26.45418, 28.47242,…
$ decimalLongitude <dbl> 153.40545, 138.69976, 139.39130, 152.63339, -16.25313…
$ lifeStage <chr> NA, "Larva", "Adult", "Larva", "Adult", "Adult", "Pup…
?occ_search(), it tells you that decimalLat/Long (aka: lat/long), is in CRS WGS84 (EPSG: 4326)The package {rnaturalearth} provides a map of countries of the world.
Use ne_countries() to pull country sf object and choose scale
# install.packages("rnaturalearth")
# install.packages("rnaturalearthdata")
library(sf)
library(rnaturalearth)
world <- ne_countries(scale = "medium", returnclass = "sf")
class(world)[1] "sf" "data.frame"
Coordinate Reference System:
User input: WGS 84
wkt:
GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["latitude",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["longitude",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]
First, let’s start with creating a base map of the world using ggplot2’s geom_sf().
ggplot() + plotlyplotly.js.ggplot() + plotlyUse the function ggplotly() to draw the graph with plotly.js.
ggplot() + plotlyWrap your plot p in ggplotly():
ggplot() + plotlyggplotly() galleryggplotly()?ggplotly() galleryLeaflet is an open-source JavaScript library for interactive maps.
The leaflet R package makes it easy to create Leaflet maps from R.
Create a base map with addTiles().
The different components of the map can be added using the pipe operator |>.
Specify different tile options with addProviderTiles
leaflet() function~ tells leaflet to look at the dataSpecify a color scale for your polygons with fillColor.
The University of Tennessee, Knoxville, offers an online graduate certificate in Educational Data Science for students interested in digital data collection, analysis, visualization, and more in educational settings. The certificate can be added to current graduate students’ studies or pursued as a stand-alone certificate for graduate-level students.
UTK Educational Data Science